package com.company.sendemo.basics.abDataType.variable;

public class Property {
//属性和变量的区别
    private static  String name;
    private final int age = 5;

    public int getAge() {
        return age;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }
    public static void main(String args[]){
        target();
    }

    private static void target() {
    }
    public void mains(){
        targets();
    }

    private void targets() {
    }

    public void Person(String n,int m){                //有参数构造函数，实现给private成员变量传参数值的功能
        name=n;
//        age=m;
    }
}

